// part1:C13:13.26:myStrBlobtest.cpp
#include <iostream>
using namespace std;
#include "myStrBlob.h"
int main(int argc, char *argv[])
{
  StrBlob bl;
  {
    StrBlob b2 = {"a", "an", "the"};
    bl = b2;
    b2.push_back("about");
    cout << "size of b2 is : " << b2.size() << endl;
    cout << "first element of b2 is : " << b2.front() << endl;
    cout << "last element of b2 is : " << b2.back() << endl;

    StrBlob b3 = bl;
    b3.push_back("next");
    cout << "size of b3 is : " << b3.size() << endl;
    cout << "first element of b3 is : " << b3.front() << endl;
    cout << "last element of b3 is : " << b3.back() << endl;
   
    cout << "all elements of bl:" << endl;
    for (auto it = bl.begin(); neq(it, bl.end()); it.incr())
    {
      cout << it.deref() << endl;
    }
  }
  return 0;
}
